//
//  EmergencyDetailTableCell.m
//  OperationPro
//
//  Created by yaxue wang on 2017/5/3.
//  Copyright © 2017年 展鸿科技. All rights reserved.
//

#import "EmergencyDetailTableCell.h"
#import "EmergencyDetailModel.h"
#import "DicussMessageModel.h"
@interface EmergencyDetailTableCell ()

@end
@implementation EmergencyDetailTableCell

- (void)initView{
    [super initView];
    self.backgroundColor =BackColor;
    CGFloat width = WindowWidth/3;
    self.locationLab = [[UILabel alloc]init];
    [self addSubview:self.locationLab];
    [self.locationLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.equalTo(self);
        make.left.equalTo(self);
        make.top.equalTo(self);
        make.width.equalTo(@(width));

    }];
    self.locationLab.textColor =FontColor;
    self.locationLab.font =F(14);
    self.locationLab.textAlignment=NSTextAlignmentCenter;
    

    self.nameLab = [[UILabel alloc]init];
    [self addSubview:self.nameLab];
    [self.nameLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.locationLab.mas_right);
        make.top.equalTo(self);
        make.height.equalTo(self);
        make.width.equalTo(@(width));

    }];
    self.nameLab.textColor =FontColor;
    self.nameLab.font =F(14);
    self.nameLab.textAlignment =NSTextAlignmentCenter;

    
    self.stateLab =[[UILabel alloc]init];
    [self addSubview:self.stateLab];
    [self.stateLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.nameLab.mas_right);
        make.width.equalTo(@(width));
        make.height.equalTo(self);
        make.top.equalTo(self);
        
    }];
    self.stateLab.font =F(14);
    self.stateLab.textAlignment =NSTextAlignmentCenter;
    
    self.lineLab = [[UILabel alloc]init];
    [self addSubview:self.lineLab];
    [self.lineLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.equalTo(@(0.5));
        make.left.equalTo(self);
        make.bottom.equalTo(self);
        make.right.equalTo(self);
        
    }];
    self.lineLab.backgroundColor=LineColor;
  

}
- (void)setModel:(id)model{
    
//    EmergencyDetailModel *order = model;
//    self.locationLab.text=order.E_user_city;
//    self.nameLab.text=order.E_name;
//    if ([order.E_es_status isEqualToString:@"0"]) {
//        self.stateLab.text=@"未签到";
//    self.stateLab.textColor =C(@"eb8c27");

//
//    }else if([order.E_es_status isEqualToString:@"0"])
//    {
//        self.stateLab.text=@"已签到";
//    self.stateLab.textColor =C(@"39a6f3");

//
//    }
    
   self.locationLab.text= @"南京";
    self.nameLab.text=@"测试名称";
    self.stateLab.text=@"已签到";
   self.stateLab.textColor =C(@"39a6f3");

}

@end
